<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>供应商</a></li>
        <li><a href="{:url('supplier/add')}">添加供应商</a></li>
    </ul>
    <form method="post" class="js-ajax-form margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>公司简称</th>
                <th>姓名</th>
                <th>手机号</th>
                <th>开户行</th>
                <th>税号</th>

                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="v">
                <tr>
                    <td>{$v.attrName}</td>
                    <td>{$v.name}</td>
                    <td>{$v.mobile}</td>
                    <td>{$v.bankNum}</td>
                    <td>{$v.dutyNum}</td>
                    <td>
                        <a class="btn btn-xs btn-primary js-ajax-submit"
                           href="{:url('supplier/see',array('id'=>$v.id))}">查看详情</a>

                        <a class="btn btn-xs btn-danger js-ajax-delete" class=""
                           href="{:url('supplier/del',array('id'=>$v.id))}">{:lang('DELETE')}</a>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <?php if($v['able'] ==1){?>
                        <a class="btn btn-xs btn-danger js-ajax-submit"
                           href="{:url('supplier/able',array('id'=>$v.id))}">禁用</a>
                        <?php }else{?>
                        <a class="btn btn-xs btn-success js-ajax-submit"
                           href="{:url('supplier/able',array('id'=>$v.id))}">启用</a>
                        <?php } ?>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>